package com.future.taglib

class PercentTagLib {
  def percent={attrs->
    def num1=Integer.parseInt(attrs.first+"")
    def num2=Integer.parseInt(attrs.second+"")
    Double num3
    if(num2==0){
      out<<0
    }else{
      num3=num1%num2
//      println num3+">>>"
      out<<num3+'%'
    }
  }
}
